package com.huoyun.user.service;

import java.util.List;

import com.huoyun.user.bean.Role;
import com.huoyun.user.dao.RoleDao;

public class RoleServiceImpl implements RoleService {

	private RoleDao roleDao;

	@Override
	public void saveRole(Role role) {
		roleDao.saveRole(role);
	}

	public RoleDao getRoleDao() {
		return roleDao;
	}

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	@Override
	public List<Role> getRolesByUserId(long userId) {
		// TODO Auto-generated method stub
		return roleDao.getRolesByUserId(userId);
	}

	
}
